<script type="text/javascript">
var isupstatus='{$getConfig.is_upload_http}';
if(isupstatus==0){
  var cmsurl="{$_URL}Ueditor/UeditorController/comindex";
}else{
  var cmsurl="{$getConfig.upload_http}ctl.php?uploadtoken={$getConfig.uploadtoken|md5}";
}
</script>
	<script type="text/javascript" charset="utf-8" src="{$_URL}static/plugins/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="{$_URL}static/plugins/ueditor/ueditor.all.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="{$_URL}static/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>

	<textarea name="content"  style="width:80%;display:inline-block;{if !isset($list.content)}padding-left: 15px;{/if}vertical-align:middle" id="content">
	{if isset($list.content)}{$list.content}{/if}
	</textarea>
	<script type="text/javascript">
	 {literal}
    var ue = UE.getEditor('content',{
    	 // toolbars: [[
      //       'source', '|',
      //       'undo', 'redo', '|',
      //       'bold', 'italic', 'underline','|',
      //       'forecolor', 'backcolor','|',
      //       'paragraph', 'fontfamily', 'fontsize', '|',
      //       'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
      //       'simpleupload','insertimage','|',
      //       /*'print', 'searchreplace', 'drafts', 'help',*/
      //   ]],
    	initialFrameWidth:'100%',
    	initialFrameHeight:'200',
    	wordCount:false,
    	elementPathEnabled:false,
    	//enableContextMenu: false,
    	allowDivTransToP:false,
    	//allHtmlEnabled:true,
    	//autoFloatEnabled:false,
    	//initialStyle:'p{line-height:1em;font-size:14px;}'
    });
    {/literal}
    </script>